package com.nowcoder.community;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class CommunityApplication {
	//Redis和Elasticsearch在使用netty的冲突
	/*这个冲突产生在NettyRuntime中的setAvailableProcessors方法中，在Netty4Utils中调用的这个方法时出现的*/
	/*@PostConstruct
	public void init(){
		//解决netty冲突问题
		System.setProperty("es.set.netty.runtime.available.processors", "false");
	}*/

	public static void main(String[] args) {
		SpringApplication.run(CommunityApplication.class, args);
	}

}
